package com.kwq.feign.client;

import com.kwq.common.Common;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

@Component
@FeignClient(value = "minioservice",path = "product/file")
public interface MinioClient {

    @PostMapping("/upload")
     Common upload(MultipartFile file);



}
